<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath()%>/js/autocomplate/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/easyui/easyui.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/date/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/autocomplate/jquery.autocomplete.js"></script>
<script type="text/javascript">

$(function(){
	
	$('#bnkNo').autocomplete({
    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
    	minChars:1,
    	paramName:'bnkNo',
    	transformResult: function(response) {
		　　return {
		　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
		　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
		　　　　})
		　　};
		},
    	formatResult:function (suggestion, currentValue) {
    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
    	}
	});

});

</script>
</head>
<body >
<div id="dataSearch" >    
<form id="sform" action="form_bank.html" method="get" enctype="multipart/form-data">
<table style="width: 100%;">
<tr><td height="30" >
<s:textfield  id="bnkNo" name="keyNo" placeholder="银行编号"></s:textfield>
<s:textfield  id="dateTop"  name="dateTop" placeholder="日期起"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="dateTop" format="yyyy-MM-dd"/></s:param></s:textfield>
 - 
<s:textfield  id="dateEnd"  name="dateEnd" placeholder="日期止"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="dateEnd" format="yyyy-MM-dd"/></s:param></s:textfield>
<input type="button" class="submit" value="查询搜索" onclick="sform.submit();"/>
<input type="button" class="submit" value="今天记录" onclick="location.href=winUrl(winUrl(location.href,'dateTop',getDate(0)),'dateEnd',getDate(0)) "/>
<input type="button" class="submit" value="昨天记录" onclick="location.href=winUrl(winUrl(location.href,'dateTop',getDate(-1)),'dateEnd',getDate(-1)) "/>
<input type="button" class="submit" value="前天记录" onclick="location.href=winUrl(winUrl(location.href,'dateTop',getDate(-2)),'dateEnd',getDate(-2)) "/>
<input type="button" class="submit" value="最近一周" onclick="location.href=winUrl(winUrl(location.href,'dateTop',getDate(-7)),'dateEnd',getDate(0)) "/>
<input type="button" class="submit" value="最近一月" onclick="location.href=winUrl(winUrl(location.href,'dateTop',getDate(-30)),'dateEnd',getDate(0)) "/>
<input type="button" class="submit" value="最近一年" onclick="location.href=winUrl(winUrl(location.href,'dateTop',getDate(-365)),'dateEnd',getDate(0)) "/>
<input type="button" class="submit" value="全部记录" onclick="location.href=winUrl(winUrl(location.href,'dateTop','1970-01-01'),'dateEnd',getDate(0)) "/>
</td>
</tr>
<tr><td><hr/></td></tr>
<tr>
	<td>
			</td>
</tr>
</table>
</form>
</div>

<table width="100%" border="0">
<tr>
	<td style="width: 50%;height: 30px;"><b>入帐合计 &nbsp;总笔数 : <s:text name="global.format.count"><s:param value="formMap.bcSummary.bcCount"/></s:text> 笔 总金额 : <s:text name="global.format.number"><s:param value="formMap.bcSummary.bcTotal"/></s:text> 元</b></td>
	<td style="width: 50%;height: 30px;"><b>出帐合计 &nbsp;总笔数 : <s:text name="global.format.count"><s:param value="formMap.cbSummary.cbCount"/></s:text> 笔 总金额 : <s:text name="global.format.number"><s:param value="formMap.cbSummary.cbTotal"/></s:text> 元</b></td>
</tr>
<tr>
	<td style="width: 50%;" valign="top">
		<table width="100%" border="1">
			<tr>
				<td height="30" align="left" width="25%">&nbsp;通道ID</td>
				<td height="30" align="left" width="25%">&nbsp;通道名称</td>
				<td height="30" align="left" width="25%">&nbsp;入账笔数</td>
				<td height="30" align="left" width="25%">&nbsp;金额</td>
			</tr>
			<s:iterator value="formMap.bcList" id="show">
				<tr>
				<td height="30" align="left">&nbsp;<s:property value="#show.bnkNo"/></td>
				<td style="padding-left: 5px;"><label  id="bcBank_<s:property value="#show.bnkNo"/>"></label>
						<script type="text/javascript">
				 		$("#bcBank_<s:property value="#show.bnkNo"/>").load("<%=request.getContextPath()%>/bank_name.html?bnkNo=<s:property value="#show.bnkNo"/>");
				 		</script>
				</td>
				<td height="30" align="left" style="color: green;">&nbsp;<s:text name="global.format.count"><s:param value="#show.bcCount"/></s:text> 笔</td>
				<td height="30" align="left" style="color: green;" >&nbsp;<s:text name="global.format.money"><s:param value="#show.bcTotal"/></s:text> 元</td>
			</tr>
			</s:iterator>
		</table>
	</td>
	<td style="width: 50%" valign="top">
		<table width="100%" border="1">
			<tr>
				<td height="30" align="left" width="25%">&nbsp;通道ID</td>
				<td height="30" align="left" width="25%">&nbsp;通道名称</td>
				<td height="30" align="left" width="25%">&nbsp;出账笔数</td>
				<td height="30" align="left" width="25%">&nbsp;金额</td>
			</tr>
			<s:iterator value="formMap.cbList" id="show">
				<tr>
				<td height="30" align="left">&nbsp;<s:property value="#show.bnkNo"/></td>
				<td style="padding-left: 5px;"><label  id="cbBank_<s:property value="#show.bnkNo"/>"></label>
						<script type="text/javascript">
				 		$("#cbBank_<s:property value="#show.bnkNo"/>").load("<%=request.getContextPath()%>/bank_name.html?bnkNo=<s:property value="#show.bnkNo"/>");
				 		</script>
				</td>
				<td height="30" align="left" style="color: green;">&nbsp;<s:text name="global.format.count"><s:param value="#show.cbCount"/></s:text> 笔</td>
				<td height="30" align="left" style="color: green;" >&nbsp;<s:text name="global.format.money"><s:param value="#show.cbTotal"/></s:text> 元</td>
			</tr>
			</s:iterator>
		</table>
	</td>
</tr>

<tr>
	<td style="width: 50%;height: 30px;"><b>入帐对账合计 &nbsp;总笔数 : <s:text name="global.format.count"><s:param value="formMap.bccheckSummary.bcCount"/></s:text> 笔 总金额 : <s:text name="global.format.number"><s:param value="formMap.bccheckSummary.bcTotal"/></s:text> 元</b></td>
	<td style="width: 50%;height: 30px;"><b>出帐对账合计 &nbsp;总笔数 : <s:text name="global.format.count"><s:param value="formMap.cbcheckSummary.cbCount"/></s:text> 笔 总金额 : <s:text name="global.format.number"><s:param value="formMap.cbcheckSummary.cbTotal"/></s:text> 元</b></td>
</tr>
<tr>
	<td style="width: 50%;" valign="top">
		<table width="100%" border="1">
			<tr>
				<td height="30" align="left" width="25%">&nbsp;通道ID</td>
				<td height="30" align="left" width="25%">&nbsp;通道名称</td>
				<td height="30" align="left" width="25%">&nbsp;笔数</td>
				<td height="30" align="left" width="25%">&nbsp;金额</td>
			</tr>
			<s:iterator value="formMap.bccheckList" id="show">
				<tr>
				<td height="30" align="left">&nbsp;<s:property value="#show.bnkNo"/></td>
				<td style="padding-left: 5px;"><label  id="bccheckBank_<s:property value="#show.bnkNo"/>"></label>
						<script type="text/javascript">
				 		$("#bccheckBank_<s:property value="#show.bnkNo"/>").load("<%=request.getContextPath()%>/bank_name.html?bnkNo=<s:property value="#show.bnkNo"/>");
				 		</script>
				</td>
				<td height="30" align="left" style="color: green;">&nbsp;<s:text name="global.format.count"><s:param value="#show.bcCount"/></s:text> 笔</td>
				<td height="30" align="left" style="color: green;" >&nbsp;<s:text name="global.format.money"><s:param value="#show.bcTotal"/></s:text> 元</td>
			</tr>
			</s:iterator>
		</table>
	</td>
	<td style="width: 50%" valign="top">
		<table width="100%" border="1">
			<tr>
				<td height="30" align="left" width="25%">&nbsp;通道ID</td>
				<td height="30" align="left" width="25%">&nbsp;通道名称</td>
				<td height="30" align="left" width="25%">&nbsp;出账笔数</td>
				<td height="30" align="left" width="25%">&nbsp;金额</td>
			</tr>
			<s:iterator value="formMap.cbcheckList" id="show">
				<tr>
				<td height="30" align="left">&nbsp;<s:property value="#show.bnkNo"/></td>
				<td style="padding-left: 5px;"><label  id="cbcheckBank_<s:property value="#show.bnkNo"/>"></label>
						<script type="text/javascript">
				 		$("#cbcheckBank_<s:property value="#show.bnkNo"/>").load("<%=request.getContextPath()%>/bank_name.html?bnkNo=<s:property value="#show.bnkNo"/>");
				 		</script>
				</td>
				<td height="30" align="left" style="color: green;">&nbsp;<s:text name="global.format.count"><s:param value="#show.cbCount"/></s:text> 笔</td>
				<td height="30" align="left" style="color: green;" >&nbsp;<s:text name="global.format.money"><s:param value="#show.cbTotal"/></s:text> 元</td>
			</tr>
			</s:iterator>
		</table>
	</td>
</tr>
</table>



<br/>
<br/>
<br/>
</body>
</html>
